const express = require('express')
const app = express()
// 1. 导入路由模块
const router = require('./04.将路由抽离为单独的模块')

// 2. 使用app.use 注册路由模块
app.use('/api',router)
app.listen(80,() => {
    console.log('启动');
})